package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.BiDataCorrelationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author 梁鲁江
 * @version v1.0
 * @date 2019/3/20 10:24
 * @since v1.0
 */
@Repository
@Mapper
public interface BiDataCorrelationDao {

    Integer insert(BiDataCorrelationEntity biDataWarehouse);

    Integer update(BiDataCorrelationEntity biDataWarehouse);

    void insertBatch(List<BiDataCorrelationEntity> biDataWarehouseList);

    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    BiDataCorrelationEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    List<BiDataCorrelationEntity>  findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    /**
     * 更新对应id的
     * @param idIn
     * @return
     */
    Integer updateWarehouseTime(@Param("idIn")  Set<Long> idIn);

    Integer updateSyscAll(@Param("idIn") Set<Long> idIn);
}
